package cn.com.doone.common.uc.service.impl;

import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.doone.common.uc.infrastructure.ldap.OAuthRSLdapRepository;
import cn.com.doone.common.uc.service.OAuthRSLdapService;

@Service("oAuthRSLdapService")
public class OAuthRSLdapServiceImpl implements OAuthRSLdapService {


    private static final Logger LOG = LoggerFactory.getLogger(OAuthRSLdapServiceImpl.class);

    @Autowired
    private OAuthRSLdapRepository oAuthRSLdapRepository;

    public Map<String, Object> getUserInfo(String clientId, String username) {
    	System.out.println("获取信息start：~~~~~~~~~~~~~~~~~~~ service");
		return oAuthRSLdapRepository.getUserInfo(clientId, username);
    }

	@Override
	public void addUser(String username, Map<String, Object> newUser) {
		oAuthRSLdapRepository.addUser(username, newUser);
	}


}
